package com.gxuwz.PangGuangyao.business.service;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gxuwz.PangGuangyao.business.dao.SysEquipmentDAO;
import com.gxuwz.PangGuangyao.business.entity.SysEquipment;
import com.gxuwz.core.pagination.Result;

@Service("sysEquipmentService")
public class SysEquipmentServiceImpl implements ISysEquipmentService {
	@Autowired
	private SysEquipmentDAO sysEquipmentDAO;

	@Override
	public Result<SysEquipment> findAll(int page, int row,String logtype) {
		return sysEquipmentDAO.find(page, row, logtype);
	}
	
	@Override
	public SysEquipment findById(String EId) {
		return sysEquipmentDAO.get(SysEquipment.class, EId);
	}

	@Override
	public void delete(String EId) {
		sysEquipmentDAO.remove(findById(EId));		
	}
	
	@Override
	public void add(SysEquipment sysEquipment) {
		sysEquipmentDAO.save(sysEquipment);
		
	}

	public void update(SysEquipment sysEquipment) {
		// TODO Auto-generated method stub
		
	}



}
